package com.cc.moxingvoice.ui.voice;

import android.databinding.DataBindingUtil;

import com.cc.moxingvoice.R;
import com.cc.moxingvoice.base.BaseActivity;
import com.cc.moxingvoice.databinding.ActivityTtsBinding;
import com.cc.moxingvoice.lock.AppBarLock;
import com.cc.moxingvoice.lock.TtsLock;

/**
 * 创建日期：2018/3/27 on 19:04
 * 描述：
 * 作者：郭士超
 * QQ：1169380200
 */

public class TtsActivity extends BaseActivity {

    private ActivityTtsBinding mBinding;
    private TtsLock mLock;
    private AppBarLock appBarLock;

    @Override
    protected void initBinding() {
        // 数据绑定操作，可以套用代码
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_tts);
        mLock = new TtsLock(this, mBinding, mBundle);
        mBinding.setLock(mLock);
        appBarLock = new AppBarLock(this, mLock, "文字转语音", true);
        mBinding.appBar.setAppBarLock(appBarLock);
    }

    @Override
    protected void init() {

    }

}
